<?php

namespace app\admin\model;
use think\Model;

class Admin extends Model
{
    protected $table = 'd_admins';

    public function getCreateAtAttr($value)
    {
    	return date('Y-m-d', $value);
    }

    public function getEndTimeAttr($value)
    {
    	if($value == 0){
    		return '-';
    	} else{
    		return date('Y-m-d H:i:s', $value);
    	}
    }
}
